package com.service;

import com.beans.Comment;
import com.beans.DataJson;
import com.beans.ResponseResult;
import com.vo.CommentVo;
import com.vo.ForumVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Mapper
public interface CommentService {

    int countCommentByForumId(ForumVo forumVo);

    List<CommentVo> listByForumId(int id);

    ResponseResult addComment(Comment comment);

    ResponseResult deleteComment(int id);

    List<CommentVo> getAllComment();

}
